# -*- coding: UTF-8 -*-

# 取出前5个
i = list(range(10))
print i[:5]
# 出去后3个
print i[-3:]
# 每2个取一个
print i[::2]